import { ref } from "vue"

export default () => {
  const x = ref(0)
  const y = ref(0)

  const change = (a: number, b: number) => {
    x.value = a
    y.value = b
  }
  // 一定要返回出去
  return {
    x, y, change
  }
}
